<!DOCTYPE html>
<!--suppress ALL-->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>永和大王门店管理系统</title>
</head>
<body style="padding: 20px;">

<div style="padding: 5px;">
    <h1>永和大王门店管理系统-门店列表</h1>
</div>

<div>
    <table border="1" cellspacing="0">
        <tr align="center" style="font-weight: bold;">
            <td>序号</td>
            <td>门店名称</td>
            <td>日期</td>
            <td>类型</td>
        </tr>
        <div>
            <a href="/toAddOrder">新增</a>
        </div>
            <tr th:each="order , indexStatus: ${orderList}">
                <td align="center" th:text="${indexStatus.index+1}"></td>
                <td th:text="${order.doorId}"></td>
                <td th:text="${order.orderNo}"></td>
                <td th:text="${order.orderType}"></td>
                <td th:text="${order.personNum}"></td>
                <td th:text="${order.cashier}"></td>
                <td th:text="${#dates.format(order.createTime)}"></td>
                <td th:text="${order.endTime}"></td>
                <td th:text="${order.paymentType}"></td>
                <td th:text="${order.price}"></td>
<!--                <td th:text="${order.created}"></td>-->
<!--                <td th:text="${order.updated}"></td>-->
                <td>
                    <a th:href="@{/order/deleteByOrderId(orderId=${order.id})}">删除门店</a>
                    <a th:href="@{/door/toUpdateByDoorId(orderId=)}">修改门店</a>
                </td>
            </tr>
    </table>
</div>
</body>

</html>
